export function formatAmount(amount: number) {
	if (typeof amount !== "number") {
		if (Number.isNaN(Number(amount))) return;
		amount = Number(amount);
	}

	const fixedAmount = (amount / 100).toFixed(2); // 保留两位小数
	if (amount > 1000000) {
		return (amount / 1000000).toFixed(2) + "万"; // 将金额除以一万元并添加 "万" 字符串
	} else {
		return fixedAmount;
	}
}
